/***
 * @description axios封装
 * @file api.ts
 * @author andy
 * @date 2024/3/22 16:40
 */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'

// demo接口1
export const demo1 = (data: any) => {
    return service({
        url: '/user/user/demo1/' + data,
        method: 'post'
    })
};


// demo接口2
export const demo2 = (data: any) => {
    return service({
        url: '/user/user/demo2',
        method: 'post',
        data
    })
};
//登录
export const login = (data: any) => {
    return service({
        url: '/user/user/login',
        method: 'post',
        data
    })
};
//菜单列表
export const getTreeMenu = (data: any) => {
    return service({
        url: '/menu/menu/getTreeMenu',
        method: 'post',
        data
    })
};


